﻿Imports System.Runtime.InteropServices
Imports System.Runtime.Serialization

'<DataContract()>
'<Serializable()>
Public Class CertificadoBE
    Public Enum tipoCertificado
        CSD
        FIEL
    End Enum

    Public Enum estadoCertificado
        Activo
        Inactivo
    End Enum

    'Private m_IdCertificado As Integer
    Private m_numeroCertificado As String
    Private m_certificadoPublico As String
    Private m_certificadoPrivado As String
    Private m_contraseñaPrivada As String
    Private m_tipo As tipoCertificado
    Private m_estado As estadoCertificado
    Private m_inicioVig As DateTime
    Private m_finVig As DateTime
    Private m_usarEnCancelacion As Boolean
    Private m_Pfx As Byte()

    Public Property NumeroCertificado() As String
        Get
            Return m_numeroCertificado
        End Get
        Set(ByVal value As String)
            m_numeroCertificado = value
        End Set
    End Property

    '<DataMember()>
    Public Property CertificadoPublico() As String
        Get
            Return m_certificadoPublico
        End Get
        Set(ByVal value As String)
            m_certificadoPublico = value
        End Set
    End Property

    '<DataMember()>
    Public Property CertificadoPrivado() As String
        Get
            Return m_certificadoPrivado
        End Get
        Set(ByVal value As String)
            m_certificadoPrivado = value
        End Set
    End Property

    '<DataMember()>
    Public Property ContraseñaPrivada() As String
        Get
            Return m_contraseñaPrivada
        End Get
        Set(ByVal value As String)
            m_contraseñaPrivada = value
        End Set
    End Property

    Public Property Tipo() As tipoCertificado
        Get
            Return m_tipo
        End Get
        Set(ByVal value As tipoCertificado)
            m_tipo = value
        End Set
    End Property

    Public Property Estado() As estadoCertificado
        Get
            Return m_estado
        End Get
        Set(ByVal value As estadoCertificado)
            m_estado = value
        End Set
    End Property

    Public Property InicioVig() As DateTime
        Get
            Return m_inicioVig
        End Get
        Set(ByVal value As DateTime)
            m_inicioVig = value
        End Set
    End Property

    Public Property FinVig() As DateTime
        Get
            Return m_finVig
        End Get
        Set(ByVal value As DateTime)
            m_finVig = value
        End Set
    End Property

    Public Property UsarEnCancelacion() As Boolean
        Get
            Return m_usarEnCancelacion
        End Get
        Set(ByVal value As Boolean)
            m_usarEnCancelacion = value
        End Set
    End Property

    Public Property Pfx() As Byte()
        Get
            Return m_Pfx
        End Get
        Set(ByVal value As Byte())
            m_Pfx = value
        End Set
    End Property
    'Public Property IdCertificado() As Integer
    '    Get
    '        Return m_IdCertificado
    '    End Get
    '    Set(ByVal value As Integer)
    '        m_IdCertificado = value
    '    End Set
    'End Property


End Class